package cn.zh.order.mapper;

import cn.zh.order.domain.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author zh
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    @Update("UPDATE t_order SET status = #{status} WHERE id = #{id}")
    int updateOrderStatus(@Param("id") Integer id, @Param("status") int status);

}
